package com.dreamcar.auction.ejb;

import javax.ejb.EJB;
import javax.ejb.Schedule;
import javax.ejb.Singleton;

@Singleton
public class WinnerBidSchedule {
	
	@EJB
	private ReverseAuctionFacadeLocal reverseAuctionFacade;
	
	@Schedule(second="10", minute="*", hour="*")
	public void chooseWinnerBid(){
		System.out.println("Actualizando Winner Bids");
		reverseAuctionFacade.chooseWinnerBid();
	}
}
